package com.yssoft.mapper.core;

import com.yssoft.entity.core.TSupplier;

import java.util.List;
import java.util.Map;

public interface TSupplierMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TSupplier record);

    int insertSelective(TSupplier record);

    TSupplier selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TSupplier record);

    int updateByPrimaryKeyWithBLOBs(TSupplier record);

    int updateByPrimaryKey(TSupplier record);

    /**
     * 查询供应商列表
     * @param record
     * @return
     */
	List<Map<String, Object>> selectListSql(TSupplier record);

	/**
	 * 查询供应商数量
	 * @param record
	 * @return
	 */
	int selectCountSql(TSupplier record);

	/**
	 * 查询供应商信息ById
	 * @param id
	 * @return
	 */
	Map<String, Object> findOne(Integer id);
    
    /**
     * 查询我的供应商
     * @param param
     * @return
     */
    List<TSupplier> findMySupplier(Map<String,Object> param);

    /**
     * 查看手机号是否存在
     * @param param
     * @return
     */
	List<Map<String, Object>> supplierIsPhone(Map<String, Object> param);
}